console.log("hello");
// 导入vue
import Vue from 'vue';
// 导入app组件
import app from './app.vue';
import home from './compents/tabbar/home.vue';
import shopping from './compents/tabbar/shopping.vue';
import member from './compents/tabbar/member.vue';
import register from './compents/tabbar/register.vue';
import cart from './compents/tabbar/cart.vue';
import search from './compents/tabbar/search.vue';

import './lib/sui/css/sm.min.css'
import './lib/mui/css/mui.css';
import './lib/mui/css/icons-extra.css';
import './lib/mui/js/mui.js';
//导入路由
import VueRouter from 'vue-router';
Vue.use(VueRouter);
var router=new VueRouter({ 
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/member',component:member},
        {path:'/cart',component:cart},
        {path:'/search',component:search},
        {path:'/home/shopping',component:shopping},
        {path:'/member/register',component:register}
    ],
    linkActiveClass:'mui-active'
});
// mint-ui导入
import { Header } from 'mint-ui';
Vue.component(Header.name, Header);

import { Tabbar, TabItem } from 'mint-ui';
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);

// 这是焦点图
import { Swipe, SwipeItem } from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 搜索
import { Search } from 'mint-ui';
Vue.component(Search.name, Search);
// 挂载路由
var  vm =new Vue({
    el:'#app',
    render:c=>c(app),  //将qpp组件挂载
    router:router
})